<?php

class Application_Form_Importbill extends Zend_Form {
    
    public function init() {
        $this->setName('Importbill');
        
        $importbill_id = new Zend_Form_Element_Hidden('importbill_id');
        $user_id_employee = new Zend_Form_Element_Text('user_id_employee');
                $user_id_employee->setLabel('ID Người lập :')
                                 ->setRequired(true)
              					 //->addFilters(array('StripTags', 'StringTrim', 'Int'))
              	  				 ->addValidator('NotEmpty');               
        $importbill_date_created = new Zend_Form_Element_Text('importbill_date_created');
        $importbill_date_created->setLabel('Ngày lập :')
                        				->setRequired(true);
			
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($importbill_id,$user_id_employee,$importbill_date_created, $btn_submit, $btn_cancel));
    }
}